home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
26
/
3
/
DISK2631.ZIP
/
EXAMP1.ZIP
/
UMEX227.BAS
< prev
next >
Wrap
BASIC Source File
|
1990-07-06
|
763b
|
38 lines
'User's Manual Example, Page 227.
' demo of use of multiple pages
SCREEN 0,0,0,0
PRINT "Start out on screen 0"
x$ = INPUT$(1)
SCREEN 0,0,1,1
LOCATE 1,1
PRINT "Now jump to screen 1"
CALL fillscreen
x$ = INPUT$(1)
SCREEN 0,0,0,0
PRINT "Just checking that screen 0's still OK"
x$ = INPUT$(1)
SCREEN 0,0,1,1
PRINT "Now fill screen 2 before switching to it"
SCREEN 0,0,2,1
LOCATE 1,1
CALL fillscreen
x$ = INPUT$(1)
SCREEN 0,0,2,2
PRINT "Now on screen 2"
s$ = INPUT$(1)
COLOR 14,4
FOR i = 0 TO 2
SCREEN 0,0,i,i
LOCATE 5,30 : PRINT "Reviewing screen"; i
x$ = INPUT$(1)
NEXT i
END
SUB fillscreen
FOR i = 1 to 10
PRINT STRING$(i*4,15)
DELAY .2 'PowerBASIC's too fast--slow it down so you can see it
NEXT i
END SUB